from header_skins import *
from ID_particle_systems import *
####################################################################################################################
#  Each skin record contains the following fields:
#  1) Skin id: used for referencing skins.
#  2) Skin flags. Not used yet. Should be 0.
#  3) Body mesh.
#  4) Calf mesh (left one).
#  5) Hand mesh (left one).
#  6) Head mesh.
#  7) Face keys (list)
#  8) List of hair meshes.
#  9) List of beard meshes.
# 10) List of hair textures.
# 11) List of beard textures.
# 12) List of face textures.
# 13) List of voices.
# 14) Skeleton name
# 15) Scale (doesn't fully work yet)
# 16) Blood particles 1 (do not add this if you wish to use the default particles)
# 17) Blood particles 2 (do not add this if you wish to use the default particles)
####################################################################################################################

man_face_keys = [
(10,0,-0.5,1.2, "Chin"),
(20,0, 0.0,1.0, "Jaw"),
(30,0,-0.1,1.0, "Mouth Width"),
(40,0,0.9,-0.5, "Mouth-Nose Dist"),

(50,0,-1.5,1.0, "Cheeks"),

(60,0,-0.4,1.35, "Nose Height"),
(70,0,-0.6,0.8, "Nose Width"),
(80,0,1.0,-0.1, "Nose Size"),
(90,0,-0.2,1.4, "Nose Bridge"),

(100,0,-0.4,1.0, "Cheek Bones"),
(110,0,1.5,-0.9, "Eye to Eye Dist"),
(120,0,-1.0,1.1, "Eye Shape"),
(130,0,-0.5, 1.1, "Eye Depth"),
(140,0,1.0,-1.2, "Eyelids"),
(150,0,-0.2,2.8, "Eye Width"),

(160,0,1.7,-0.2, "Eyebrow Position"),
(170,0,-0.1,2.3, "Eyebrow Height"),
(180,0,-1.1,1.6, "Eyebrow Shape"),
(190,0,0.0,1.0, "Post-Edit"),


]

woman_face_keys = [
(10,0,-0.8,0.6, "Chin"),
(20,0,-0.4,1.0, "Jaw"),
(30,0,-0.1,0.9, "Mouth Width"),

(40,0, 1.1, -0.3, "Mouth-Nose Dist"),

(50,0, -0.5,1.0, "Cheeks"),

(60,0,-0.5,1.0, "Nose Height"),
(70,0,-0.5,1.1, "Nose Width"),
(80,0,1.5,-0.3, "Nose Size"),
(90,0, 0.0,1.1, "Nose Bridge"),

(100,0,1.0,-0.5, "Cheek Bones"),
(110,0,1.0,0.0, "Eye to Eye Dist"),
(120,0,-0.2,1.0, "Eye Shape"),
(130,0,-0.1,1.6, "Eye Depth"),
(140,0,-0.2,1.0, "Eyelids"),
(150,0,-0.6,1.5, "Eye Width"),


(160,0,1.0,-0.2, "Eyebrow Position"),
(170,0,-0.2,1.0, "Eyebrow Height"),
(180,0,-1.5,1.2, "Eyebrow Shape"),
(190,0,0.0,1.0, "Post-Edit"),
]
undead_face_keys = []

skins = [
  (
    "man", 0,
    "man_body", "man_calf_l", "m_handL",
    "male_head", man_face_keys,
    ["man_hair_s","man_hair_m","man_hair_n","man_hair_o","man_hair_u","man_hair_p","man_hair_r","man_hair_q","man_hair_t","man_hair_v","man_hair_y","man_hair_y2","man_hair_y3","man_hair_y4","man_hair_y5","man_hair_y6","man_hair_y7","man_hair_y9","man_hair_y8","man_hair_y10","man_hair_y11","man_hair_y12"], #man_hair_meshes
    ["beard_a","beard_e","beard_d","beard_k","beard_l","beard_m","beard_n","beard_i","beard_j","beard_o","beard_p","beard_h","beard_g","beard_c","beard_f","beard_b","beard_q","beard_r","beard_s","beard_t","beard_u","beard_v","beard_y","beard_z"], #beard meshes
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"], #hair textures
    ["beard_blonde","beard_red","beard_brunette","beard_black","beard_white"], #beard_materials
    [("manface_young_2",0xffebf0f0,["hair_blonde", "hair_red"]),
     ("manface_young",0xfff0f0f0,["hair_black","hair_brunette","hair_red"]),     
     ("manface_midage",0xffefefe1,["hair_black","hair_brunette","hair_red","hair_blonde"]),
     ("manface_old",0xffd0d0d0,["hair_white","hair_brunette","hair_red","hair_blonde"]),
     ("manface_midage_2",0xffe4e8e8,["hair_black","hair_brunette","hair_red","hair_blonde"]),
     ("manface_rugged",0xff9f9f9f,["hair_black"]),
     ("manface_young_4",0xffe0e8e8,["hair_black","hair_brunette"]),
     ("manface_young_3",0xfffcfdfd,["hair_black","hair_brunette"]),
     ("manface_african",0xff707070,["hair_black"]),     
     ("manface_old_2",0xffd5d5c5,["hair_white"]),
     ], #man_face_textures,
    [(voice_die,"snd_man_die"),(voice_hit,"snd_man_hit"),(voice_grunt,"snd_man_grunt"),(voice_grunt_long,"snd_man_grunt_long"),(voice_yell,"snd_man_yell"),(voice_warcry,"snd_man_warcry"),(voice_victory,"snd_man_victory")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
  ),
  
  (
    "woman", skf_use_morph_key_10,
    "woman_body",  "woman_calf_l", "f_handL",
    "female_head", woman_face_keys,
    ["woman_hair_p","woman_hair_n","woman_hair_o","woman_hair_q","woman_hair_r","woman_hair_t","woman_hair_s"], #woman_hair_meshes
#    ["woman_hair_a","woman_hair_b","woman_hair_c","woman_hair_d","woman_hair_e","woman_hair_f","woman_hair_g"], #woman_hair_meshes
    [],
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white"], #hair textures
    [],
    [("womanface_young",0xffe3e8ef,["hair_blonde","hair_red", "hair_brunette"]),
     ("womanface_b",0xffdfdfdf,["hair_red", "hair_brunette","hair_black"]),
     ("womanface_a",0xffe8dfe5,["hair_red", "hair_brunette","hair_black"]),
     ("womanface_brown",0xffaf9f7e,["hair_brunette","hair_black"]),
     ("womanface_african",0xff807070,["hair_black"]),
     ("womanface_midage",0xffe5eaf0,["hair_black","hair_brunette","hair_red","hair_white"]),
     ],#woman_face_textures
    [(voice_die,"snd_woman_die"),(voice_hit,"snd_woman_hit")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
  ),
  
  (
    "undead", 0,
    "undead_body", "undead_calf_l", "undead_handL",
    "undead_head", undead_face_keys,
    [],
    [],
    [],
    [],
    [("undeadface_a",0xffffffff,[]),
     ("undeadface_b",0xffcaffc0,[]),
     ], #undead_face_textures
    [], #voice sounds
    "skel_human", 1.0,
  ),
]

